.announcement-detail-container {
  min-height: 100vh;
  background-color: #f5f5f5;
}

/* 头部样式 */
.detail-header {
  background: white;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}

.back-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: #333;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.back-btn:hover {
  background-color: #f0f0f0;
}

.header-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.header-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.action-icon {
  font-size: 18px;
  color: #999;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.action-icon:hover {
  background-color: #f0f0f0;
}

/* 公告内容区域 */
.announcement-content {
  background: white;
  margin: 16px;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  /* 移除限制高度的样式 */
  min-height: auto;
  height: auto;
  overflow: visible;
}

/* 公告标题 */
.announcement-title {
  margin: 0 0 16px 0;
  font-size: 20px;
  font-weight: 700;
  color: #333;
  line-height: 1.4;
}

/* 公告来源 */
.announcement-source {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

/* 公告正文 */
.announcement-body {
  margin-bottom: 24px;
}

.content-paragraph {
  margin: 0 0 16px 0;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  text-align: justify;
}

.content-paragraph:last-child {
  margin-bottom: 0;
}

/* 发布信息 */
.publish-info {
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #999;
}

.publish-time {
  color: #666;
}

.read-count {
  color: #1677ff;
  font-weight: 500;
}

/* 互动信息样式 */
.interaction-info {
  display: flex;
  justify-content: space-around;
  padding: 20px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  margin: 20px 0;
}

.interaction-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.interaction-item:hover {
  transform: translateY(-2px);
}

.interaction-icon {
  font-size: 24px;
}

.interaction-text {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

/* 相关公告推荐样式 */
.related-announcements {
  margin-top: 24px;
}

.related-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 16px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.related-item {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-left: 4px solid #1677ff;
}

.related-item:hover {
  background: #f0f2f5;
  transform: translateX(4px);
}

.related-item-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.related-item-summary {
  font-size: 14px;
  color: #666;
  margin: 0 0 12px 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #999;
}

.related-source {
  color: #1677ff;
  font-weight: 500;
}

/* 加载状态样式 */
.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  background: white;
  margin: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.loading-spinner {
  font-size: 16px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 8px;
}

.loading-spinner::before {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #1677ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .detail-header {
    padding: 12px 16px;
  }
  
  .header-title {
    font-size: 16px;
  }
  
  .announcement-content {
    margin: 12px;
    padding: 16px;
  }
  
  .announcement-title {
    font-size: 18px;
    margin-bottom: 12px;
  }
  
  .announcement-source {
    font-size: 13px;
    margin-bottom: 16px;
    padding-bottom: 12px;
  }
  
  .content-paragraph {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 14px;
  }
  
  .publish-info {
    padding-top: 16px;
    font-size: 13px;
  }
  
  .interaction-info {
    padding: 16px 0;
    margin: 16px 0;
  }
  
  .interaction-icon {
    font-size: 20px;
  }
  
  .interaction-text {
    font-size: 12px;
  }
  
  .related-title {
    font-size: 16px;
    margin-bottom: 12px;
  }
  
  .related-item {
    padding: 12px;
  }
  
  .related-item-title {
    font-size: 15px;
  }
  
  .related-item-summary {
    font-size: 13px;
  }
}
